Skip to content

Improved PostgreSQL Event Store performance #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 20, 2025

Conversation

oskardudycz
Copy link
Collaborator

@oskardudycz oskardudycz commented Aug 3, 2025

  • Removed redundant MAX statement in the PostgreSQL append to stream function, and added a missing filter for not archived records. This could be causing a full scan of the records sometimes.
  • Ensured that the information that migrations were run is preserved throughout the event store creation in the command handler. This was causing redundant tries to create the schema again.

@oskardudycz oskardudycz force-pushed the pg_append_perf_improvement branch 3 times, most recently from f655f6a to 1138f6a Compare August 3, 2025 07:17
@oskardudycz oskardudycz force-pushed the pg_append_perf_improvement branch from 1138f6a to ea04a9c Compare August 3, 2025 07:19
@oskardudycz oskardudycz force-pushed the pg_append_perf_improvement branch from 8712288 to a47f74e Compare August 20, 2025 11:10
…ing event store session (e.g. in command handler)
@oskardudycz oskardudycz changed the title Removed redundant MAX statement in the PostgreSQL append to stream function Improved PostgreSQL Event Store performance Aug 20, 2025
@oskardudycz oskardudycz added this to the 0.38.5 milestone Aug 20, 2025
@oskardudycz oskardudycz merged commit e577358 into main Aug 20, 2025
6 checks passed
@oskardudycz oskardudycz deleted the pg_append_perf_improvement branch August 20, 2025 13:06
@oskardudycz oskardudycz modified the milestones: 0.38.5, 0.38.4 Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant